//StudentTest.java
package com.ylaihui.oop2;

class Student{
	String name;
	int age;
	
	Student(){
		System.out.println("null arguments constructor...");
	}
	Student(String name){
		this();
		this.name = name;
	}
	Student(String name, int age){
		this(name);
		this.age = age;
	}
	
	private void method(){
		System.out.println("some comm fun!");
	}
	public void show(){
		this.method();
		System.out.println(this.name);
		System.out.println(this.age);
	}
}

public class StudentTest {
	public static void main(String[] args) {
		Student s = new Student("lisimmy", 33);
		
		s.show();
	}
}
